package com.yugu.park.enums;

import com.google.common.collect.Maps;

import java.util.Arrays;
import java.util.Map;

/**
 * 序列类型
 * @author 31631
 *
 */
public enum SequenceTypeEnum {
    STOCK_HOUSE_OUTBOUND("STOCK_HOUSE_OUTBOUND", "出库单"),
    GOODS_NO("GOODS_NO", "货品编号"),
	ORDER_NO("ORDER_NO","订单编号"),
	DRIVER_NO("DRIVER_NO","充值编号"),
	LOTTERY_NO("LOTTERY_NO","大转盘订单编号"),
	INTEGRAL_NO("INTEGRAL_NO","积分兑换商品编号"),
    STOCK_HOUSE_INBOUND("STOCK_HOUSE_INBOUND", "入库单"),
    STOCK_HOUSE_RETURN("STOCK_HOUSE_RETRUN", "退库单"),
    COMAPNY("COMAPNY", "公司代码"),
    EMPLOYEE("EMPLOYEE", "员工编号"),
	DRIVER("DRIVER", "司机申请账号"),
	DRIVER_APPLY("DRIVER_APPLY", "合伙人申请支付订单号"),
	PARTNER_BIRTHDAY("PARTNER_BIRTHDAY", "合伙人领取生日礼订单"),
	VIP_NO("VIP_NO", "会员编号")
    ;
    private String code;
    private String desc;

    private static final Map<String, SequenceTypeEnum> MAPS = Maps.uniqueIndex(
            Arrays.asList(SequenceTypeEnum.values()),
            SequenceTypeEnum::getCode
    );

    public static SequenceTypeEnum get(String code) {
        return MAPS.get(code);
    }

    
	private SequenceTypeEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
    
    
}
